package com.itcast.mallapplet.service;

import com.itcast.applet.dto.ShoppingDhDTO;
import com.itcast.applet.entity.ShoppingDh;
import com.itcast.result.PageResult;

import java.util.List;

public interface ShoppingService {

    //根据商品id添加到购物车
    void addShopping(Long id);

    /**
     *删除购物车商品
     * @param ids
     *
     */
    void deleteShopping(List<Long> ids);



    //修改购物车商品数量
    void amendShopping(ShoppingDhDTO shoppingDhDTO);

    //获取用户的全部购物车分页
    PageResult queryAllShopping(Integer page, Integer pageSize);
}
